<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body>


   <div class="row">
   
      <div class="col-md-12">
      
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
       <a class="navbar-brand" href="#" style="color:blue;font-size:20px;font-weight:bold">东方罗尔后台管理</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
         <li><a href="#" style="color:red;font-size:12px">欢迎张三登陆</a></li>
    
      </ul>
   
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">退出登陆</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav> 
      
      
      </div>
   
   
   
   </div>



   <div class="row">
   
    
      <div class="col-md-2">
      
           
         <%@include file="Menu.jsp" %>
           
           
      
      
      
      </div>
      
      
      
      <div class="col-md-10">
      
<div class="panel panel-default">
  <div class="panel-heading">用户的查询</div>
  <div class="panel-body">
    
      <div class="row">
      
         <div class="col-md-12">
         
            <table class="table table-striped">
 
                  <thead>
                  
                  	<tr><th>ID</th><th>姓名</th><th>年龄</th><th>性别</th><th>地址</th><th>电话</th></tr>
                  
                  
                  </thead>
                  
                  <tbody>
                  
                     
                  <c:forEach items="${requestScope.list}" var="item">
                  
                  
                      <tr>
                      
                         <td>${item.id }</td>
                         
                         <td>${item.username }</td>
                          <td>${item.age }</td>
                          
                          <td>
                          
                            <c:if test="${item.sex==1}">男</c:if>
                            <c:if test="${item.sex==0}">女</c:if>
                          
                          </td>
                          
                      <td>${item.address }</td>
                      
                      <td>${item.phone }</td>
                      
                      </tr>
                  
                  
                  
                  
                  </c:forEach>
                  
                  
                  
                  </tbody>             
              
              
              </table>
         
         
         
         </div>
      
      
      
      
      </div>
    
    
       <div class="row">
       
          <div class="col-md-12" style="text-align: center">
          
             <nav aria-label="Page navigation">
  <ul class="pagination">
   
    
      <c:if test="${requestScope.curpage>1}">
      <li>
        <a href="QueryPageServlet?curpage=${requestScope.curpage-1}" aria-label="Previous">
        <span aria-hidden="true">&laquo;</span>
      </a>
      
      </li>
      
      </c:if>
      
         <c:if test="${requestScope.curpage==1}">
       <li>
        <a href="#" aria-label="Previous">
        <span aria-hidden="true">&laquo;</span>
      </a>
      
      </li>
      
      </c:if>
      
 
   
      <c:forEach begin="1" step="1" end="${requestScope.counts}" var="t">
      
          <c:if test="${requestScope.curpage==t}">
          
           <li class="active"><a href="QueryPageServlet?curpage=${t}">${t}</a></li>
          
          </c:if>
          
           <c:if test="${requestScope.curpage!=t}">
          
           <li><a href="QueryPageServlet?curpage=${t}">${t}</a></li>
          
          </c:if>
      
      
      
       
      
      
      </c:forEach>
   
   
     <c:if test="${requestScope.curpage==requestScope.counts}">
     
     
       <li>
      <a href="#" aria-label="Next">
        <span aria-hidden="true">&raquo;</span>
      </a>
    </li>
     
     
     </c:if>
     
     
         <c:if test="${requestScope.curpage<requestScope.counts}">
     
     
       <li>
      <a href="QueryPageServlet?curpage=${requestScope.curpage+1}" aria-label="Next">
        <span aria-hidden="true">&raquo;</span>
      </a>
    </li>
     
     
     </c:if>
     
     
     
     
   
   
   

  </ul>
</nav>
          
          
          
          
          </div>
       
       
       </div>
    
    
    
    
  </div>
</div>
           
      
      
      </div>
   
   
   
   
   
   </div>




</body>
</html>